package goover.unit01;

public class Demo01 {
    public static void main(String[] args){
        try {
            test01();
        } catch (Exception01 e) {
            System.out.println(e.getMessage());
        }
    }
    public static void test01() throws Exception01{
        if(1 >= 0){
            System.out.println("111");
            throw new Exception01("判断出错！");
        }else{
            System.out.println("判断正确！");
        }
    }
}
class Exception01 extends Exception{
    public Exception01(){
        super();
    }
    public Exception01(String messaga){
        super(messaga);
    }
}
